<?php
if(!$this->session->userdata('user_info')){
	redirect('/');
}else{
	$user_info = $this->session->userdata('user_info');
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
         <meta charset="utf-8">
        <title><?=$titulo?></title>
        <link type="text/css" href="<?=base_url()?>assets/css/css.css" rel="stylesheet">
        <link type="text/css" href="<?=base_url()?>assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link type="text/css" href="<?=base_url()?>assets/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
        <link type="text/css" href="<?=base_url()?>assets/css/theme.css" rel="stylesheet">
        <link type="text/css" href="<?=base_url()?>assets/images/icons/css/font-awesome.css" rel="stylesheet">
        <link type="text/css" href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600' rel='stylesheet'>
         
        <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
        <script src="//code.jquery.com/jquery-1.10.2.js"></script>
        <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
        <link rel="stylesheet" href="/resources/demos/style.css">
         
    </head>
    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-inverse-collapse">
                        <i class="icon-reorder shaded"></i></a><a class="brand admin" href="<?=base_url()?>administrador/dashboard">
                        <img src="<?=base_url()?>assets/images/logo_gray.png" alt="Mangiamo" class="admin_logo">
                    </a>
                    <div class="nav-collapse collapse navbar-inverse-collapse">
                        
                        
                        <ul class="nav pull-right">                            
                            <li><a href="#">Ayuda </a></li>
                            <li class="nav-user dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">                                
                                <?=$user_info['nombre']?> <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="<?=base_url()?>administrador/logout">Salir</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <!-- /.nav-collapse -->
                </div>
            </div>
            <!-- /navbar-inner -->
        </div>
        <!-- /navbar -->
        <div class="wrapper">
            <div class="container">
                <div class="row">
                    <div class="span3">
                        <div class="sidebar">
                            <ul class="widget widget-menu unstyled">
                                <li class="active"><a href="<?=base_url()?>administrador/dashboard"><i class="menu-icon icon-dashboard"></i>Inicio
                                </a></li>                               
                            </ul>
                            <!--/.widget-nav-->

                            <ul class="widget widget-menu unstyled">                                
                                <li><a class="collapsed" data-toggle="collapse" href="#m1"><i class="menu-icon icon-cog">
                                </i><i class="icon-chevron-down pull-right"></i><i class="icon-chevron-up pull-right">
                                </i>Atención al Cliente </a>
                                    <ul id="m1" class="collapse unstyled">
                                        <li><a href="<?=base_url()?>administrador/zonas"><i class="icon-table"></i>Zonas </a></li>
                                        <li><a href="<?=base_url()?>administrador/mesas"><i class="icon-table"></i>Mesas </a></li>
                                        <li><a href="<?=base_url()?>administrador/categorias"><i class="icon-table"></i>Categorias </a></li>
                                        <li><a href="<?=base_url()?>administrador/subcategorias"><i class="icon-table"></i>Subcategorias </a></li>
                                    </ul>
                                </li>

                                <li><a class="collapsed" data-toggle="collapse" href="#m2"><i class="menu-icon icon-cog">
                                </i><i class="icon-chevron-down pull-right"></i><i class="icon-chevron-up pull-right">
                                </i>Producción </a>
                                    <ul id="m2" class="collapse unstyled">
                                        <li><a href="<?=base_url()?>administrador/estufas"><i class="icon-table"></i>Estufas </a></li>
                                        <li><a href="<?=base_url()?>administrador/medidas"><i class="icon-table"></i>Medidas </a></li> 
                                        <li><a href="<?=base_url()?>administrador/items"><i class="icon-table"></i>Items </a></li>                                        
                                    </ul>
                                </li>

                                <li><a class="collapsed" data-toggle="collapse" href="#m3"><i class="menu-icon icon-cog">
                                </i><i class="icon-chevron-down pull-right"></i><i class="icon-chevron-up pull-right">
                                </i>Inventario </a>
                                    <ul id="m3" class="collapse unstyled">
                                        <li><a href="<?=base_url()?>administrador/marcas"><i class="icon-table"></i>Marcas </a></li>
                                        <li><a href="<?=base_url()?>administrador/tipo_productos"><i class="icon-table"></i>Tipos de productos </a></li>
                                        <li><a href="<?=base_url()?>administrador/productos"><i class="icon-table"></i>Productos </a></li>
                                    </ul>
                                </li>

                                <li><a class="collapsed" data-toggle="collapse" href="#m4"><i class="menu-icon icon-cog">
                                </i><i class="icon-chevron-down pull-right"></i><i class="icon-chevron-up pull-right">
                                </i>Compra </a>
                                    <ul id="m4" class="collapse unstyled">
                                    <li><a href="<?=base_url()?>administrador/compras"><i class="icon-table"></i>Compras </a></li>
                                        
                                    </ul>
                                </li>

                                <li><a class="collapsed" data-toggle="collapse" href="#m5"><i class="menu-icon icon-cog">
                                </i><i class="icon-chevron-down pull-right"></i><i class="icon-chevron-up pull-right">
                                </i>Administración </a>
                                    <ul id="m5" class="collapse unstyled">
                                        
                                        <!--<li><a href="<?=base_url()?>administrador/roles"><i class="icon-table"></i>Roles </a></li>-->
                                        <li><a href="<?=base_url()?>administrador/cargos"><i class="icon-table"></i>Cargos </a></li>
                                        <li><a href="<?=base_url()?>administrador/paises"><i class="icon-table"></i>Paises </a></li>
                                        <li><a href="<?=base_url()?>administrador/ciudades"><i class="icon-table"></i>Ciudades </a></li>
                                        <li><a href="<?=base_url()?>administrador/facturas"><i class="icon-table"></i>Tipo de factura </a></li>
                                        <li><a href="<?=base_url()?>administrador/empleados"><i class="icon-table"></i>Empleado </a></li>
                                    </ul>
                                </li>
                            </ul>
                            <!--/.widget-nav-->

                            <ul class="widget widget-menu unstyled">
                                <li><a href="<?=base_url()?>administrador/logout"><i class="menu-icon icon-signout"></i>Salir </a></li>
                            </ul>
                            <!--/.widget-nav-->
                        </div>
                        <!--/.sidebar-->
                    </div>